home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
Amos
/
AMOSList-0497
/
AMOSLIST
/
000188_amos-request@svcs1.digex.net_Wed Apr 23 03:34:16 1997.msg
< prev
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
68 lines
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id DAA17082
for <mcox@access.digex.net>; Wed, 23 Apr 1997 03:34:15 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id BAA26687
for amos-out; Wed, 23 Apr 1997 01:20:53 -0400 (EDT)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id BAA26684
for <amos-list@svcs1.digex.net>; Wed, 23 Apr 1997 01:20:53 -0400 (EDT)
Received: from quartz.ucs.ualberta.ca (quartz.ucs.ualberta.ca [129.128.5.19])
by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id BAA07413
for <amos-list@access.digex.net>; Wed, 23 Apr 1997 01:20:51 -0400 (EDT)
Received: from henday.hfs.ualberta.ca (uucp@henday.hfs.ualberta.ca [129.128.163.10])
by quartz.ucs.ualberta.ca (8.8.5/8.8.5) with ESMTP id XAA41716
for <amos-list@access.digex.net>; Tue, 22 Apr 1997 23:20:44 -0600
Received: (from uucp@localhost) by henday.hfs.ualberta.ca (8.6.12/8.6.9) id XAA30145 for <amos-list@access.digex.net>; Tue, 22 Apr 1997 23:20:43 -0600
Date: Tue, 22 Apr 1997 23:20:43 -0600
Message-Id: <199704230520.XAA30145@henday.hfs.ualberta.ca>
Received: from UNKNOWN(172.16.1.110), claiming to be "[172.16.1.110]"
via SMTP by henday.hfs.ualberta.ca, id smtpd30139aaa; Tue Apr 22 23:20:37 1997
X-Sender: cyallop@172.16.1.1
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: amos-list@access.digex.net
From: cyallop@gpu.srv.ualberta.ca (Curtis Yallop)
Subject: Re: Printing to file
Status: RO
X-Status:
>>What I want to do is use AmosPro to create a file in Ram called Datapath
>>and then execute it with Amiga dos.
>>If you look at the example below it should create a file called Datapath
>>containing "CD workbench:data".
>>
>>a$="workbench:data"
>>C$="CD "
>>A$=C$+A$
>>Open Out 3,"Ram:Datapath"
>>Print #3,A$
>>Print #3,Chr$(13)
>>Close 3
>
>If you write your info to a bank and Bsave from it you eliminate the
>extra characters. But in this case, how about quick & dirty with the
>CLI echo command?
>
>A$="CD workbench:data"
>exec "echo "+A$+" >ram:Datapath" :Rem Keep those spaces
This echo thing will only work once, replacing the file each time. To
enter further commands put '>>' (append file) instead of '>' (replace file)
Better is the Amos way:
Open Out 3,"Ram:Datapath"
Print #3,A$;Chr$(10);
Close 3
Exec "execute ram:Datapath"
Curt
============================================================================
Curtis Yallop "Ms-Dos Sucks Dirt" cyallop@gpu.srv.ualberta.ca
Amiga 1200 - '030 28MHz, 6MB RAM, 540HD http://www.ualberta.ca/~cyallop
============================================================================